package com.example.mapper;

import com.example.entity.ProductOrder;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Auther: Nostalgia
 * @Date: 2020/7/6 17:01
 * @Description:
 */
@Mapper
public interface ProductOrderMapper {
    /**
     * 获取所有商品订单
     * @return
     */
    List<ProductOrder> getAllProductOrder(String productName);

    /**
     *
     * 功能描述: 删除订单
     *
     * @param:
     * @return:
     * @auther: Nostalgia
     * @date: 2020/7/8 11:51
     */
    int deleteProductOrderById(int id);

    int updateStatus(int id);
}
